home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / LIFER__ / PROTO / U / LIFE_WIN.C < prev    next >
Text File  |  1991-08-01  |  2KB  |  107 lines

  1. /* LIFE_WINDOW */
  2.  
  3. /* File name: LIFE_WINDOW */
  4. /* Function: Handle a modeless dialog */
  5. /* History: 7/23/91 Original by Prototyper 3.0   */
  6.  
  7.  
  8. #include "PCommonLife.h"    /* Common */
  9. #include "Common_Life.h"    /* Common */
  10. #include "PUtils_Life.h"    /* General Utilities */
  11. #include "Utils_Life.h"    /* General Utilities */
  12.  
  13. #include "LIFE_WINDOW.h"    /* This file */
  14.  
  15.  
  16. /* ======================================================= */
  17.  
  18.  
  19.  
  20. /* Routine: U_Init_LIFE_WINDOW */
  21. /* Purpose: This routine is called while when the program is first run. */
  22. /*     This is used for onetime initialization. */
  23. void U_Init_LIFE_WINDOW()
  24. {
  25.  
  26. }                                                                                /* End of procedure */
  27.  
  28.  
  29. /* ======================================================= */
  30.  
  31.  
  32. /* Routine: U_Moved_LIFE_WINDOW */
  33. /* Purpose: This routine is called when our window gets moved on the screen, */
  34. /*     or to another screen. */
  35. void U_Moved_LIFE_WINDOW(theDialog,OldRect)
  36. DialogPtr    theDialog;
  37. Rect        *OldRect;
  38. {
  39.  
  40. }                                                                                /* End of procedure */
  41.  
  42.  
  43. /* ======================================================= */
  44.  
  45.  
  46. /* Routine: U_Update_LIFE_WINDOW */
  47. /* Purpose: This routine is called when our window gets an update event */
  48. void U_Update_LIFE_WINDOW(theDialog)
  49. DialogPtr    theDialog;
  50. {
  51.  
  52. }                                                                                /* End of procedure */
  53.  
  54.  
  55. /* ======================================================= */
  56.  
  57.  
  58. /* Routine: U_Setup_LIFE_WINDOW */
  59. /* Purpose: This routine is called when our modeless dialog is opened */
  60. void U_Setup_LIFE_WINDOW(theDialog)
  61. DialogPtr    theDialog;
  62. {
  63.  
  64. }                                                                                /* End of procedure */
  65.  
  66.  
  67. /* ======================================================= */
  68.  
  69.  
  70. /* Routine: U_Close_LIFE_WINDOW */
  71. /* Purpose: This routine is called when our modeless dialog is closed */
  72. void U_Close_LIFE_WINDOW(theDialog)
  73. DialogPtr    theDialog;
  74. {
  75.  
  76. }                                                                                /* End of procedure */
  77.  
  78.  
  79. /* ======================================================= */
  80.  
  81.  
  82. /* Routine: U_Hit_LIFE_WINDOW */
  83. /* Purpose: Hit in the modeless dialog */
  84. void U_Hit_LIFE_WINDOW(theDialog,itemHit,ExitDialog,theEvent)
  85. DialogPtr    theDialog;
  86. short        itemHit;
  87. Boolean        *ExitDialog;
  88. EventRecord    *theEvent;
  89. {
  90.  
  91. if (itemHit ==Res_Dlg_Continue)                                          /* Handle the Button being pressed */
  92.     {
  93.         LIFE_PROGRAM();
  94.     }
  95.  
  96. if (itemHit ==Res_Dlg_Quit)                                               /* Handle the Button being pressed */
  97.     {
  98.     doneFlag = TRUE;
  99.     }
  100.  
  101. }                                                                                /* End of procedure */
  102.  
  103.  
  104. /* ======================================================= */
  105.  
  106.  
  107.